import request from "@/common/http/axios"


// 获取神论信息
export const getSlxx = params => {
	return request({
		url: '/shenlun-info/list',
		method: 'get',
		params: {
			type: 2,
			...params
		}
	});
};

// 新增神论信息
export const addSlxx = data => {
	return request({
		url: '/shenlun-info/add',
		method: 'post',
		data: {
			...data
		}
	});
};

// 更新神论信息
export const updateSlxx = data => {
	return request({
		url: '/shenlun-info/add',
		method: 'post',
		data
	});
};

// 删除神论信息
export const deleteSlxx = id => {
	return request({
		url: `/shenlun-info/delete/${id}`,
		method: 'get'
	});
};


// /shenlun-info/detail/{id}
export const shenlunDetail = id => {
	return request({
		url: `/shenlun-info/detail/${id}`,
		method: 'get'
	})
}
// /shenlun-cailiao/add
export const addSlcl = data => {
	return request({
		url: '/shenlun-cailiao/add',
		method: 'post',
		data
	})
}

// /shenlun-cailiao/delete/{id}
export const deleteSlcl = id => {
	return request({
		url: `/shenlun-cailiao/delete/${id}`,
		method: 'post'
	})
}

// shenlun-question/add
export const slqadd = (data) => {
	return request({
		url: '/shenlun-question/add',
		method: 'post',
		data
	})
}
export const slqdel = (id) => {
	return request({
		url: `/shenlun-question/delete/${id}`,
		method: 'post'
	})
}
